﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace Word.Editor.Doc
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public class Fib 
    {
        public FibBase fibBase;
        /// <summary>
        /// An unsigned integer that specifies the count of 16-bit values corresponding to fibRgW that follow. 
        /// MUST be 0x000E.
        /// </summary>
        public UInt16 csw;
        /// <summary>
        /// The FibRgW97 structure is a variable-length portion of the Fib.
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 28)]
        public byte[] fibRgW;
        /// <summary>
        /// An unsigned integer that specifies the count of 32-bit values corresponding to fibRgLw that follow. 
        /// MUST be 0x0016.
        /// </summary>
        public UInt16 cslw;
        public FibRgLw97 fibRgLw;
        /// <summary>
        /// An unsigned integer that specifies the count of 64-bit values corresponding to fibRgFcLcbBlob that follow. 
        /// This MUST be one of the following values, depending on the value of nFib.
        /// 
        /// </summary>
        public UInt16 cbRgFcLcb;
    }
}
